package com.bsp.autobean;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * Created by zyf on 2017/5/15 0015.
 */
@Configuration
@EnableWebMvc
@ComponentScan
public class StaticFileConfiguration extends WebMvcConfigurerAdapter{
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//        registry.addResourceHandler("/ui/**").addResourceLocations("/ui/");
//        registry.addResourceHandler("/*.html").addResourceLocations("/ui/page/**/");
//        registry.addResourceHandler("/*.js").addResourceLocations("/ui/js/**/");
//        registry.addResourceHandler("/*.css").addResourceLocations("/ui/css/**/");
    }
}
